//
//  JLXXMineGetRecording.m
//  JLXXListController
//
//  Created by apple on 17/5/16.
//  Copyright © 2017年 cnsuer. All rights reserved.
//

#import "JLXXMineGetRecording.h"

@implementation JLXXMineGetRecording{
    
    NSString *_userid;
}

-(instancetype)initWithUserid:(NSString *)userid{
    if (self = [super init]) {
        _userid = userid;
    }
    return self;
}

-(NSString *)requestUrl{
    return @"getUserLiveVideoList";
}

-(id)requestParam{
    if (!_userid) return nil;
    NSDictionary *param = @{@"uid":_userid};
    return param;
}

-(BOOL)jsonValidator{
    if ([self.responseObject[@"data"] isKindOfClass:[NSArray class]]) {
        return YES;
    }
    return NO;
}

-(void)serializedResponseObjectToModel{
    //    for (NSDictionary *dic in self.responseObject[@"data"]) {
    //        for (NSDictionary *photoUrlDic in dic[@"smeta"]) {
    //            NSLog(@"****%@****",photoUrlDic[@"r_url"]);
    //        }
    //        NSLog(@"||||||||%@||||||||",dic[@"upload_date"]);
    //    }
    ////    self.item = self.responseObject[@"data"];
}

@end
